package cn.xn.hrms.infrastructure.dao;
import java.util.Collection;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xn.hrms.api.dto.res.RoleMenuDTO;

public interface RoleMenuDao {

    List<RoleMenuDTO> findAllByRoleIdIn(@Param("roleIdCollection") List<Long> roleIdCollection);

    int insertList(@Param("list") List<RoleMenuDTO> list);

    int updateIsDeletedByMenuId(@Param("updatedIsDeleted") Integer updatedIsDeleted, @Param("menuId") Long menuId);

    int updateIsDeletedByRoleIdIn(@Param("updatedIsDeleted")Integer updatedIsDeleted,
                                  @Param("roleIdCollection")Collection<Integer> roleIdCollection);
}
